project(pfft)

cmake_minimum_required(VERSION 2.6)

set(MAJOR_VERSION 0)
set(MINOR_VERSION 1)
set(PFFT_VERSION $MAJOR_VERSION.$MINOR_VERSION)
set(PROJECT_NAME pfft)

option(BUILD_SHARED_LIBS "Build the pfft library shared." ON)
option(BUILD_STATIC_LIBS "Build the pfft library static." ON)

list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeScripts")

include(CheckIncludeFiles)

find_package(stdlibs REQUIRED)
find_package(c99libs QUIET)

if(NOT HAVE_STDBOOL_H)
    add_definitions(-D_PFFT_STDBOOL_NOT_SUPPORTED)
endif(NOT HAVE_STDBOOL_H)

if(NOT HAVE_STDINT_H)
    add_definitions(-D_PFFT_STDINT_NOT_SUPPORTED)
endif(NOT HAVE_STDINT_H)

add_subdirectory(src)

message(STATUS)
message(STATUS "-------------------------------------------------------------------------------")
message(STATUS "BUILD_SHARED_LIBS = ${BUILD_SHARED_LIBS}")
message(STATUS "BUILD_STATIC_LIBS = ${BUILD_STATIC_LIBS}")
message(STATUS "CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}" )
message(STATUS "CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}" )
message(STATUS "CMAKE_MODULE_PATH = ${CMAKE_MODULE_PATH}" )
message(STATUS "${PROJECT_NAME}_DEPENDS = \"${${PROJECT_NAME}_DEPENDS}\"" )
message(STATUS "BUILD_WITH = \"${BUILD_WITH}\"" )
message(STATUS "INSTALL_DOC = ${INSTALL_DOC}" )
message(STATUS "Change a value with: cmake -D<Variable>=<Value>" )
message(STATUS "-------------------------------------------------------------------------------")
message(STATUS)


